lectures.alex.balgavy.eu

Lecture notes from university.
git clone git://git.alex.balgavy.eu/lectures.alex.balgavy.eu.git
Log | Files | Refs | Submodules

Instruction execution.md (670B)


      1 +++
      2 title = 'Instruction execution'
      3 +++
      4 # Instruction execution
      5 LOAD (e.g. Load R5, X(R7))
      6 1. Fetch instruction, increment PC
      7 2. Decode instruction, read contents of R7
      8 3. Compute effective address
      9 4. Read memory source operand
     10 5. Load operand into destination R5
     11 
     12 STORE (e.g. Store R6, X(R8))
     13 1. Fetch instruction, increment PC
     14 2. Decode instruction, read R6 and R8
     15 3. Compute effective address of X+[R8]
     16 4. Store contents of R6 into memory location X+[R8]
     17 5. No action
     18 
     19 Arithmetic & Logic (e.g. Add R3, R4, R5)
     20 1. Fetch instruction, increment PC
     21 2. Decode instruction, read contents of R4, R5
     22 3. Compute sum [R4] + [R5]
     23 4. No action
     24 5. Load result into destination R3